<!doctype html>
<html>
<head>
    <script src="test/jquery-1.10.2.js"></script>
    <script src="test/select2.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $(".multiSelect").select2();
            $("#btnSave").click(function () {
                var v = $("#worker").select2("val");
                $("#workers").val(v);
                $("#myform").submit();//myform表单的id
            });
        });
    </script>
</head>
<body>

<label for="multiSelect" class="control-label">负责人</label>

<div class="controls">
    <select class="multiSelect" name="manager" style="width:200px">
        <option>tom</option>
        <option>admin</option>
        <option>alex</option>
    </select>
</div>
select2的使用
<wbr>
复选
select2的使用
<wbr>
复选

<label for="input01" class="control-label">项目成员</label>

<div class="controls">
    <select name="worker" id="worker" multiple class="multiSelect" style="width:400px">
        <option>tom</option>
        <option>admin</option>
        <option>alex</option>
    </select>
</div>
<input type="hidden" name="workers" id="workers"/>

<div class="form-actions">
    <button type="button" id="btnSave" class="btn btn-primary">保存</button>
</div>

</body>
</html>